import request from './request';

// 获取短信验证码
export function login_getSmsCode(data) {
  return request({
    url: 'login/getSmsCode',
    method: 'post',
    data
  });
}

// openId判断用户是否被邀请过
export function login_getUserIdByOpenId(data) {
  return request({
    url: 'login/getUserIdByOpenId',
    method: 'post',
    data
  });
}

// 登录
export function login_saveUserInfo(data) {
  return request({
    url: 'login/saveUserInfo',
    method: 'post',
    data
  });
}

// 获取用户基本信息
export function user_getUserBasicInfo(data) {
  return request({
    url: 'user/getUserBasicInfo',
    method: 'post',
    data
  });
}

// 微信授权登录
export function login_wxLogin(data) {
  return request({
    url: 'login/wxLogin',
    method: 'post',
    data
  });
}

//获取微信配置信息
export function user_wxShareInfo(data) {
  return request({
    url: 'user/wxShareInfo',
    method: 'post',
    data
  });
}

// 通过code查询微信信息
export function login_authWxCallBack(data) {
  return request({
    url: 'login/authWxCallBack',
    method: 'post',
    data
  });
}

//邀请注册
export function login_inviteRegister(data) {
  return request({
    url: 'login/inviteRegister',
    method: 'post',
    data
  });
}

//发票抬头列表
export function invoiceTitle_getInvoiceTitleList(data) {
  return request({
    url: 'invoiceTitle/getInvoiceTitleList',
    method: 'post',
    data
  });
}

//发票抬头详情
export function invoiceTitle_getInvoiceTitleDetail(data) {
  return request({
    url: 'invoiceTitle/getInvoiceTitleDetail',
    method: 'post',
    data
  });
}

//删除发票抬头
export function invoiceTitle_delInvoiceTitle(data) {
  return request({
    url: 'invoiceTitle/delInvoiceTitle',
    method: 'post',
    data
  });
}

//保存发票抬头
export function invoiceTitle_saveInvoiceTitle(data) {
  return request({
    url: 'invoiceTitle/saveInvoiceTitle',
    method: 'post',
    data
  });
}

//获取阿里云直传参数
export function user_getOssStsInfo(data) {
  return request({
    url: 'user/getOssStsInfo',
    method: 'post',
    data
  });
}

//海报
export function picture_getPictureList(data) {
  return request({
    url: 'picture/getPictureList',
    method: 'post',
    data
  });
}

//产品海报
export function picture_getPosterList(data) {
  return request({
    url: 'picture/getPosterList',
    method: 'post',
    data
  });
}

//更新用户信息
export function user_updateUser(data) {
  return request({
    url: 'user/updateUser',
    method: 'post',
    data
  });
}

//更新用户手机号
export function user_updateUserPhone(data) {
  return request({
    url: 'user/updateUserPhone',
    method: 'post',
    data
  });
}

// 我的收藏商机列表
export function business_getCollectBusinessList(data) {
  return request({
    url: 'business/getCollectBusinessList',
    method: 'post',
    data
  });
}

// 我的发布商机列表
export function business_getPublishBusinessList(data) {
  return request({
    url: 'business/getPublishBusinessList',
    method: 'post',
    data
  });
}

//我的订单
export function order_getOrderList(data) {
  return request({
    url: 'order/getOrderList',
    method: 'post',
    data
  });
}

//我收到的名片列表
export function deliveryCard_getDeliveryCardList(data) {
  return request({
    url: 'deliveryCard/getDeliveryCardList',
    method: 'post',
    data
  });
}
